﻿using System;
using System.Configuration;

namespace Xpus.Website.Configuration
{
	/// <summary>
	/// 表示xpus/mailServer节点下的配置。
	/// </summary>
	public class MailServerConfiguration : ConfigurationElement
	{
		/// <summary>
		/// 获取mailServer/host属性。
		/// </summary>
		[ConfigurationProperty("host", IsRequired = true)]
		public string Host
		{
			get
			{
				return (string)base["host"];
			}
		}

		/// <summary>
		/// 获取mailServer/port属性。
		/// </summary>
		[ConfigurationProperty("port")]
		public int Port
		{
			get
			{
				return (int)base["port"];
			}
		}

		/// <summary>
		/// 获取mailServer/userName属性。
		/// </summary>
		[ConfigurationProperty("userName")]
		public string UserName
		{
			get
			{
				return (string)base["userName"];
			}
		}

		/// <summary>
		/// 获取mailServer/password属性。
		/// </summary>
		[ConfigurationProperty("password")]
		public string Password
		{
			get
			{
				return (string)base["password"];
			}
		}

		/// <summary>
		/// 获取mailServer/address属性。
		/// </summary>
		[ConfigurationProperty("address")]
		public string Address
		{
			get
			{
				return (string)base["address"];
			}
		}
	}
}
